package com.ruoyi.pay.manager.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

import com.entity.concat.ITimeEntity;
import com.ruoyi.common.core.domain.Entity;

/**
 * 余额变更记录对象 mg_change_record
 * 
 * @author 王强
 * @date 2023-12-25
 */
public class ChangeRecord extends Entity implements ITimeEntity<Long>
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Integer id;

    /** 变更类型 0 出账 1 入账 */
    @Excel(name = "变更类型 0 出账 1 入账")
    private Integer changeType;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal money;

    /** 变更原因 */
    @Excel(name = "变更原因")
    private String reason;
    
    private Integer userId;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setChangeType(Integer changeType) 
    {
        this.changeType = changeType;
    }

    public Integer getChangeType() 
    {
        return changeType;
    }
    public void setMoney(BigDecimal money) 
    {
        this.money = money;
    }

    public BigDecimal getMoney() 
    {
        return money;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("changeType", getChangeType())
            .append("money", getMoney())
            .append("reason", getReason())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}
}
